﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 判死.
/// </summary>
public class DeathController : MonoBehaviour {

    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            //玩家死亡.
            other.GetComponent<PlayerCharacter>().Die();
        }
    }
}
